package com.education.common.exception;

import com.education.common.utils.ResultCode;

/**
 * @author 余一
 * @Description 系统业务异常类
 * @date 2021/6/6 11:36
 */
public class BusinessException extends RuntimeException{

    private ResultCode resultCode;

    public BusinessException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message,Throwable throwable) {
        super(message,throwable);
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode) {
        this.resultCode = resultCode;
    }
}
